package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbPushLogMapper;
import com.ruoyi.system.domain.TbPushLog;
import com.ruoyi.system.service.ITbPushLogService;

/**
 * 推送日志Service业务层处理
 * 
 * @author 那吉德
 * @date 2025-02-20
 */
@Service
public class TbPushLogServiceImpl implements ITbPushLogService 
{
    @Autowired
    private TbPushLogMapper tbPushLogMapper;

    /**
     * 查询推送日志
     * 
     * @param logId 推送日志主键
     * @return 推送日志
     */
    @Override
    public TbPushLog selectTbPushLogByLogId(Long logId)
    {
        return tbPushLogMapper.selectTbPushLogByLogId(logId);
    }

    /**
     * 查询推送日志列表
     * 
     * @param tbPushLog 推送日志
     * @return 推送日志
     */
    @Override
    public List<TbPushLog> selectTbPushLogList(TbPushLog tbPushLog)
    {
        return tbPushLogMapper.selectTbPushLogList(tbPushLog);
    }

    /**
     * 新增推送日志
     * 
     * @param tbPushLog 推送日志
     * @return 结果
     */
    @Override
    public int insertTbPushLog(TbPushLog tbPushLog)
    {
        return tbPushLogMapper.insertTbPushLog(tbPushLog);
    }

    /**
     * 修改推送日志
     * 
     * @param tbPushLog 推送日志
     * @return 结果
     */
    @Override
    public int updateTbPushLog(TbPushLog tbPushLog)
    {
        return tbPushLogMapper.updateTbPushLog(tbPushLog);
    }

    /**
     * 批量删除推送日志
     * 
     * @param logIds 需要删除的推送日志主键
     * @return 结果
     */
    @Override
    public int deleteTbPushLogByLogIds(Long[] logIds)
    {
        return tbPushLogMapper.deleteTbPushLogByLogIds(logIds);
    }

    /**
     * 删除推送日志信息
     * 
     * @param logId 推送日志主键
     * @return 结果
     */
    @Override
    public int deleteTbPushLogByLogId(Long logId)
    {
        return tbPushLogMapper.deleteTbPushLogByLogId(logId);
    }
}
